package dependency

import (
	"gluenet/internal/glue-srvp/domain/entity"
	"gluenet/internal/pkg/infra"
)

type InstanceMetaRepo interface {
	MetaRepo

	AddInstance(obj *entity.Instance, auth infra.AuthInfo) error
	DelInstance(obj *entity.Instance, auth infra.AuthInfo) error
	UptInstance(obj *entity.Instance, auth infra.AuthInfo) error
	FindInstance(obj *[]entity.Instance, auth infra.AuthInfo, query interface{}, args ...interface{}) error

	//AddByUser(obj *entity.Instance, userId string, userGroup int64) error
	//FindByUser(objs *[]entity.Instance, userId string, userGroup int64, authLevel int64, query interface{}, args ...interface{}) error
	//DelByUser(objs *entity.Instance, userId string, userGroup int64, authLevel int64, query interface{}, args ...interface{}) error
	//UptByUser(objs *entity.Instance, userId string, userGroup int64, authLevel int64, query interface{}, args ...interface{}) error
}
